import "pkl:test"

local x = new Listing {
  "pigeon"
}

res1 = test.catch(() -> (x) {
  [3] = "barn owl"
})

res2 = test.catch(() -> (x) {
  [2 + 1] = "barn owl"
})

res3 = test.catch(() -> (x) {
  [-1] = "barn owl"
})

res4 = test.catch(() -> (x) {
  [-1 * 1] = "barn owl"
})
